home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / mmalloc / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-03-25  |  3.4 KB  |  165 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1992 Cygnus Support
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. #
  19. # Makefile for mmalloc directory
  20. #
  21.  
  22. # Directory containing source files.  Don't clean up the spacing,
  23. # this exact string is matched for by the "configure" script.
  24. srcdir = .
  25.  
  26. prefix =    /usr/local
  27.  
  28. exec_prefix = $(prefix)
  29.  
  30. bindir =    $(exec_prefix)/bin
  31. libdir =    $(exec_prefix)/lib
  32.  
  33. datadir =    $(prefix)/lib
  34. mandir =    $(prefix)/man
  35. man1dir =    $(mandir)/man1
  36. man2dir =    $(mandir)/man2
  37. man3dir =    $(mandir)/man3
  38. man4dir =    $(mandir)/man4
  39. man5dir =    $(mandir)/man5
  40. man6dir =    $(mandir)/man6
  41. man7dir =    $(mandir)/man7
  42. man8dir =    $(mandir)/man8
  43. man9dir =    $(mandir)/man9
  44. infodir =    $(prefix)/info
  45. includedir =    $(prefix)/include
  46. docdir =    $(datadir)/doc
  47.  
  48. SHELL =        /bin/sh
  49.  
  50. INSTALL =    install -c
  51. INSTALL_PROGRAM = $(INSTALL)
  52. INSTALL_DATA =    $(INSTALL)
  53.  
  54. AR =        ar
  55. AR_FLAGS =    qv
  56. BISON =        bison
  57. MAKEINFO =    makeinfo
  58. RANLIB =    ranlib
  59. RM =        rm
  60.  
  61. TARGETLIB =    libmmalloc.a
  62.  
  63. MINUS_G =    -g
  64. CFLAGS =    $(MINUS_G) -I. -I$(srcdir)/../include $(HDEFINES)
  65.  
  66. CFILES =    mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
  67.         mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
  68.         keys.c sbrk-sup.c
  69.  
  70. HFILES =    mmalloc.h
  71.  
  72. OFILES =    mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
  73.         mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o \
  74.         keys.o sbrk-sup.o
  75.  
  76. #### Host, target, and site specific Makefile fragments come in here.
  77. ###
  78.  
  79. # Do we want/need any config overrides?
  80. #     
  81.  
  82. STAGESTUFF =    $(TARGETLIB) *.o
  83.  
  84. all:        $(TARGETLIB)
  85.  
  86. info:
  87. clean-info:
  88. install-info:
  89. check:
  90.  
  91. install:    all
  92.         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB).n
  93.         $(RANLIB) $(libdir)/$(TARGETLIB).n
  94.         mv -f $(libdir)/$(TARGETLIB).n $(libdir)/$(TARGETLIB)
  95.  
  96. $(TARGETLIB):    $(OFILES)
  97.         $(RM) -rf $@
  98.         $(AR) $(AR_FLAGS) $@ $(OFILES)
  99.         $(RANLIB) $@
  100.  
  101. $(OFILES) :    $(HFILES)
  102.  
  103. .always.:
  104. # Do nothing.
  105.  
  106. .PHONEY: all etags tags ls clean stage1 stage2 .always.
  107.  
  108. stage1:        force
  109.         -mkdir stage1
  110.         -mv -f $(STAGESTUFF) stage1
  111.  
  112. stage2:        force
  113.         -mkdir stage2
  114.         -mv -f $(STAGESTUFF) stage2
  115.  
  116. stage3:        force
  117.         -mkdir stage3
  118.         -mv -f $(STAGESTUFF) stage3
  119.  
  120. stage4:        force
  121.         -mkdir stage4
  122.         -mv -f $(STAGESTUFF) stage4
  123.  
  124. against=stage2
  125.  
  126. comparison:    force
  127.         for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  128.  
  129. de-stage1:    force
  130.         -(cd stage1 ; mv -f * ..)
  131.         -rmdir stage1
  132.  
  133. de-stage2:    force
  134.         -(cd stage2 ; mv -f * ..)
  135.         -rmdir stage2
  136.  
  137. de-stage3:    force
  138.         -(cd stage3 ; mv -f * ..)
  139.         -rmdir stage3
  140.  
  141. de-stage4:    force
  142.         -(cd stage4 ; mv -f * ..)
  143.         -rmdir stage4
  144.  
  145. etags tags:    TAGS
  146.  
  147. TAGS:        $(CFILES)
  148.         etags $(HFILES) $(CFILES)
  149.  
  150. ls:
  151.         @echo Makefile $(HFILES) $(CFILES)
  152.  
  153. # Need to deal with profiled libraries, too.
  154.  
  155. clean:
  156.         rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors 
  157.  
  158. force:
  159.  
  160. Makefile:    $(srcdir)/Makefile.in $(host_makefile_frag) \
  161.         $(target_makefile_frag)
  162.         $(SHELL) ./config.status
  163.